package com.alex.monitor.core.alarm.impl;

import com.alex.monitor.core.properties.AlexMonitorProperties;
import com.alibaba.fastjson2.JSONObject;
import lombok.extern.slf4j.Slf4j;

/**
 * 仅打印日志的报警器
 *
 * @author Alex.Liu
 * @date: 2025-02-16 15:38
 * @since 1.0.0
 */
@Slf4j
public class DefaultLogMonitorAlarm extends AbstractMonitorAlarm {

    public DefaultLogMonitorAlarm(AlexMonitorProperties properties) {
        super(properties);
    }

    @Override
    protected void doAlarm(String tag, JSONObject message) {
        log.info("tag:{}, message:{}", tag, message);
    }

}